package cn.hdu.community.mapper;

import cn.hdu.community.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Date;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhangxin
 * @since 2022-04-01
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 通过用户邮箱查找用户
     *
     * @param userEmail
     * @return
     */
    User findUserByEmail(String userEmail);

    /**
     * 通过用户邮箱判断用户是否存在
     *
     * @param userEmail
     * @return
     */
    Integer existsUserByEmail(String userEmail);
}
